Optimal. Leaf size=18 \[ \frac{\sin ^3(e+f x) \cos (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0214714, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.048, Rules used = {3011} \[ \frac{\sin ^3(e+f x) \cos (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3011
Rubi steps
\begin{align*} \int \sin ^2(e+f x) \left (3-4 \sin ^2(e+f x)\right ) \, dx &=\frac{\cos (e+f x) \sin ^3(e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0656382, size = 31, normalized size = 1.72 \[ \frac{2 \sin (2 (e+f x))-\sin (4 (e+f x))+4 e}{8 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.026, size = 44, normalized size = 2.4 \begin{align*}{\frac{1}{f} \left ( \left ( \left ( \sin \left ( fx+e \right ) \right ) ^{3}+{\frac{3\,\sin \left ( fx+e \right ) }{2}} \right ) \cos \left ( fx+e \right ) -{\frac{3\,\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) }{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.958813, size = 46, normalized size = 2.56 \begin{align*} \frac{\tan \left (f x + e\right )^{3}}{{\left (\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1\right )} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62775, size = 66, normalized size = 3.67 \begin{align*} -\frac{{\left (\cos \left (f x + e\right )^{3} - \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.75751, size = 148, normalized size = 8.22 \begin{align*} \begin{cases} - \frac{3 x \sin ^{4}{\left (e + f x \right )}}{2} - 3 x \sin ^{2}{\left (e + f x \right )} \cos ^{2}{\left (e + f x \right )} + \frac{3 x \sin ^{2}{\left (e + f x \right )}}{2} - \frac{3 x \cos ^{4}{\left (e + f x \right )}}{2} + \frac{3 x \cos ^{2}{\left (e + f x \right )}}{2} + \frac{5 \sin ^{3}{\left (e + f x \right )} \cos{\left (e + f x \right )}}{2 f} + \frac{3 \sin{\left (e + f x \right )} \cos ^{3}{\left (e + f x \right )}}{2 f} - \frac{3 \sin{\left (e + f x \right )} \cos{\left (e + f x \right )}}{2 f} & \text{for}\: f \neq 0 \\x \left (3 - 4 \sin ^{2}{\left (e \right )}\right ) \sin ^{2}{\left (e \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1625, size = 42, normalized size = 2.33 \begin{align*} -\frac{\sin \left (4 \, f x + 4 \, e\right )}{8 \, f} + \frac{\sin \left (2 \, f x + 2 \, e\right )}{4 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]